<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本插值</title>
</head>
<body>
<div id="div">
    <div>{{msg}}</div>
    <div v-text="msg"></div>
    <div v-html="msg"></div>
    <div id="mydiv"></div>
</div>
</body>
<script src="vue-2.6.12.js"></script>
<script>
    let vm = new Vue({
        el:"#div",
        data:{
            msg:"<h1>Hello Vue</h1>"
        }
    });
</script>
<script>
    document.getElementById("mydiv").innerHTML = vm.msg
</script>
</html>